package com.zksk.admin.domain.org.vo;

import com.zksk.mbg.admin.domain.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Insert;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "FieldRequestVo", description = "字段查询过滤")
public class FieldRequestVo extends PageVo {

    @ApiModelProperty("字段名称")
    @NotNull(message = "字段名称不能为空!",groups = Insert.class)
    private String fieldName;

    @ApiModelProperty("字段默认标识(0 默认 1 非默认)")
    private Integer defaultFlag;

    @ApiModelProperty("字段是否隐藏（0 隐藏 1 显示）")
    private Integer hiddenFlag;

    @ApiModelProperty("排序")
    private Integer orderNum;

    @ApiModelProperty("字段描述")
    @NotNull(message = "字段描述不能为空!",groups = Insert.class)
    private String desc;
}
